Mysql create new database and user

CREATE DATABASE testdatabase;
 
CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'testpassword';
 
GRANT ALL PRIVILEGES ON testdatabase.* TO 'testuser'@'localhost';

Leave a Reply